/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.test2.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

import java.util.List;

/**
 * 养殖场管理Entity
 * @author dby
 * @version 2020-09-15
 */
public class FarmClass extends DataEntity<FarmClass> {
	
	private static final long serialVersionUID = 1L;
	private String farmId;		// 外键
	private String breedLivestock;		// 养殖畜种
	private String scope;		// 规模
	private Integer totalInventory;		// 总存栏
	private Integer quantityOfSlaughter;		// 出栏量
	private Integer breedingStock;		// 能繁母畜存栏
	private Integer status;		// 启用状态 0=不可用 1=可用
	private String sort;		// 排序

//	public List<FarmClass> farmClass;

	public FarmClass() {
		super();
	}

	public FarmClass(String id){
		super(id);
	}

	@Length(min=0, max=18, message="外键长度必须介于 0 和 18 之间")
	public String getFarmId() {
		return farmId;
	}

	public void setFarmId(String farmId) {
		this.farmId = farmId;
	}
	
	@Length(min=0, max=20, message="养殖畜种长度必须介于 0 和 20 之间")
	public String getBreedLivestock() {
		return breedLivestock;
	}

	public void setBreedLivestock(String breedLivestock) {
		this.breedLivestock = breedLivestock;
	}
	
	@Length(min=0, max=1, message="规模长度必须介于 0 和 1 之间")
	public String getScope() {
		return scope;
	}

	public void setScope(String scope) {
		this.scope = scope;
	}
	
	public Integer getTotalInventory() {
		return totalInventory;
	}

	public void setTotalInventory(Integer totalInventory) {
		this.totalInventory = totalInventory;
	}
	
	public Integer getQuantityOfSlaughter() {
		return quantityOfSlaughter;
	}

	public void setQuantityOfSlaughter(Integer quantityOfSlaughter) {
		this.quantityOfSlaughter = quantityOfSlaughter;
	}
	
	public Integer getBreedingStock() {
		return breedingStock;
	}

	public void setBreedingStock(Integer breedingStock) {
		this.breedingStock = breedingStock;
	}
	
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	
	@Length(min=0, max=4, message="排序长度必须介于 0 和 4 之间")
	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

//	public List<FarmClass> getFarmClass() {
//		return farmClass;
//	}
//
//	public void setFarmClass(List<FarmClass> farmClass) {
//		this.farmClass = farmClass;
//	}
}